]> dgit.raspbian.org Git - gnome-shell.git/commit
tests: Fix check for global scope pollution
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 21 Jan 2024 17:50:54 +0000 (18:50 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 26 Jan 2024 13:12:40 +0000 (13:12 +0000)
commitb02460fa633390e8224aa16c8bb52f582df90b6e
tree9a6d16e41390b8d26a925a0756e77299a140ecac
parentab40b5c711790f99b859b1e0951db00448631535
tests: Fix check for global scope pollution

Since commit c570011 dropped the `with` statement, this bit of
the test has only checked for writes to a specific variable
in the file.

There is no direct replacement for `with` here, the best we can
do (I think) is comparing property names on the global objects
before and after the `eval()` call.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3132>
tests/unit/jsParse.js